<template>
</template>

<script>
	export default{
		data(){
			return{
				
			}
		},
		onLoad(option){
			//console.log("rpt_id", option.rptid);
			//var data = {billIds:option.rptid,template:"PurInStock.jasper"};
			//var data = {key:"BD_Stock", pageSize:"1", orgId:"100003", filter:"", lookValue:"CK001"};
		    //var data = {key:"BD_Stock", orgId:"100003", currentValue:"CK001"};
			//var data = {key:"BD_Supplier", orgId:100002, filter:"", currentValue:"VEN00001"};
			//var data = {key:"c9d3b266-6698-4424-be1b-05c299727297"}
		    var  str="select u1.FEntryID entyid,v1.FNUMBER 条码,m1.FNUMBER 物料编码,m2.FName 物料名称,m2.FSPECIFICATION 规格型号,n1.FNAME 计量单位,u1.FQty 数量,s2.FNAME 仓库名称,u1.fspid_name 库位名称,u1.flot_text 批号,u1.FPRODUCTDATE 生产日期,v1.FISONLY 是否唯一码,v1.FBarcodeType 条码类型 from top_TerminalDataEntry u1 inner join t_bbb_barcode v1 on u1.FBarcode = v1.fid 	inner join t_bd_material m1 on v1.FMATERIALID = m1.FMaterialId 	inner join T_BD_MATERIAL_L m2 on m2.FMATERIALID = m1.FMATERIALID and m2.FLOCALEID = 2052	inner join T_BD_UNIT_L n1 on n1.FUNITID = v1.FUNITID and n1.FLOCALEID = 2052	left join t_bd_stock s1 on s1.FStockId = u1.FStockId	left join t_bd_stock_l s2 on s1.FStockId = s2.FStockId and s2.FLOCALEID = 2052 ";
            var sql="where u1.FID = '"+1+"' order by u1.fentryid "
			 var data={sql:str+sql}
			this.$myRequest.postRequest("LoadListJson", data).then(res=>{
				 console.log(JSON.stringify(res.data));
			}).catch(err=>{
			    console.log(err)
			});
		},
		methods:{
			
		}
	}
</script>

<style>
</style>
